﻿using System;
using smp.RabbitMq;

namespace TestClientsCommon
{
    public class Message1Subscriber2 : ISubscriberHandler<Message1>
{
        #region Implementation of ISubscriberHandler<Message1>

        public void Handle(Message1 message)
        {
            Console.WriteLine();
            Console.WriteLine("Subscriber 2 recieved message : ");
            Console.WriteLine("      Message number " + message.Number + ", with text " + message.Text + " published at time : " + message.Sent);
            Console.WriteLine();
        }

        #endregion
}
}
